<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableRentalProject extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('rental_project', function(Blueprint $table)
        {
            $table->increments('id')->comment('自增长');
            $table->integer('uid')->comment('用户ID，对应member表id');
            $table->string('project')->comment('出租项目，字符串拼接');
            $table->unsignedInteger('price')->comment('出租的价格');
            $table->string('company')->comment('价格单位');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('rental_project');
    }
}
